<style>
    .ctoc{margin:20px 0; border-bottom:1px dashed #dedede; padding-bottom:20px}
    .ctoc .tit span{float:left; font-size:14px}
    .ctoc .tit span a{margin:0 5px}
    .ctoc .tit .butn{float:right}
    .ctoc .user-information{border:0; padding-right:48px}
    .ctoc .user-information dt{overflow:visible; position:relative}
    .ctoc .user-information dt em{display:block; background:url(../Images/ed4.gif) no-repeat; width:8px; height:15px; position:absolute; top:15px; right:-16px;}

    .ctoc .user-information dd{border:1px solid #e0e0e0; padding:5px 10px; margin:0 15px; width:80%; border-radius: 5px 5px 5px 5px}
    .ctoc .user-information .name-tit span{color:#999; margin:0 0 0 10px; float:right}
    .ctoc .me-msg{padding:0 0 0 48px}
    .ctoc .me-msg dt em{background-position:right 0; right:auto; left:-16px}
    .user-information{border-bottom:1px solid #eaeaea;margin:10px auto;padding:5px 0 10px;position: relative;zoom:1;z-index: 1;display: block;}
    .user-information .tik{position:absolute; bottom:7px; right:0; /*display:none*/}
    .user-information:hover .tik,.hover .tik{display:block}
    .user-information .tik span{color:#ccc; margin:0 5px; *vertical-align: 2px}
    .user-information dt{float:left; height:48px; width:48px;border-radius: 5px 5px 5px 5px}
    .user-information dt img{border-radius: 5px 5px 5px 5px;/* width: 48px; *//* height:48px; */}
    .user-information .desc { margin:15px 0; font-size:14px}
    .user-information .desc a { margin-left:12px}
    .user-information .block { position:relative; float:left; margin-right:3em;}
    .user-information .block p { float:left; margin-right:15px}
    .user-information .block ul { display:inline-block; overflow:hidden;color:#999; line-height:1.9}
    .user-information .orange { color:#ff5d00}
    .user-page .user-information dt{overflow:hidden}
    /*.user-information dt{width:100px; height:100px;border-radius: 5px;} 2013 1 3影响到列表*/
    .user-information dd{margin-left:15px; width:59%; color:#999; line-height:25px}
    .user-information dd.obc{width:90%}
    .user-information dd.mint,.user-information dd.minc{width:auto; float:right; margin:0; text-align:right}
    .user-information dd .mint-ed-icon{margin: 0}
    .user-information dd .mint-ed-icon a, .task-icons a{display:inline-block; width:17px; height:17px; background:url(../r/page/li-ico.png?new) no-repeat;_background:url(../r/page/li-ico.gif?new) no-repeat}
    .user-information dd .mint-ed-icon a.edia, .task-icons a.edia{background-position:0 -23px}
    .user-information dd .mint-ed-icon a.agent, .task-icons a.agent{background-position: 0 -221px;}
    .user-information dd .mint-ed-icon a.edib, .task-icons a.edib {background-position:0 -45px}
    .user-information dd .mint-ed-icon a.edic, .task-icons a.edic {background-position:0 -65px}
    .user-information dd .mint-ed-icon a.edrec, .task-icons a.edrec {background-position:0 -155px}
    .user-information dd .mint-ed-icon a.special, .task-icons a.special {background-position:0 -88px}
    .user-information dd .mint-ed-icon a.isadvc-2, .task-icons a.isadvc-2 {background-position:0 -110px}
    .user-information dd .mint-ed-icon a.isadvc-3, .task-icons a.isadvc-3 {background-position:0 -132px}
    .user-information dd .mint-ed-icon a.reward-ico-2, .task-icons a.reward-ico-2 {background-position:0 -180px;height: 20px;}
    .user-information dd .mint-ed-icon a.reward-ico-2, .task-icons a.reward-ico-3 {background-posit ion:0 -200px;}
</style>
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- Apple devices fullscreen -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Apple devices fullscreen -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link href="/public/static/msg/static/css/main.css" rel="stylesheet" type="text/css">
<link href="/public/static/msg/static/css/page.css" rel="stylesheet" type="text/css">
<link href="/public/static/msg/static/font/css/font-awesome.min.css" rel="stylesheet" />
<!--[if IE 7]>
  <link rel="stylesheet" href="/public/static/msg/static/font/css/font-awesome-ie7.min.css">
<![endif]-->
<link href="/public/static/msg/static/js/jquery-ui/jquery-ui.min.css" rel="stylesheet" type="text/css"/>
<link href="/public/static/msg/static/js/perfect-scrollbar.min.css" rel="stylesheet" type="text/css"/>
<style type="text/css">html, body { overflow: visible;}</style>
<script type="text/javascript" src="/public/static/msg/static/js/jquery.js"></script>
<script type="text/javascript" src="/public/static/msg/static/js/jquery-ui/jquery-ui.min.js"></script>
<script type="text/javascript" src="/public/static/msg/static/js/layer/layer.js"></script><!-- 弹窗js 参考文档 http://layer.layui.com/-->
<script type="text/javascript" src="/public/static/msg/static/js/admin.js"></script>
<script type="text/javascript" src="/public/static/msg/static/js/jquery.validation.min.js"></script>
<script type="text/javascript" src="/public/static/msg/static/js/common.js"></script>
<script type="text/javascript" src="/public/static/msg/static/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/public/static/msg/static/js/jquery.mousewheel.js"></script>
<script src="/public/static/msg/js/myFormValidate.js"></script>
<script src="/public/static/msg/js/global.js"></script>
    <script type="text/javascript">
    /**
     * 全选
     * @param obj
     */
    function checkAllSign(obj){
        $(obj).toggleClass('trSelected');
        if($(obj).hasClass('trSelected')){
            $('#flexigrid > table>tbody >tr').addClass('trSelected');
        }else{
            $('#flexigrid > table>tbody >tr').removeClass('trSelected');
        }
    }

    /**
     * 批量公共操作（删，改）
     * @returns {boolean}
     */
    function publicHandleAll(type){
        var ids = '';
        $('#flexigrid .trSelected').each(function(i,o){
            ids += $(o).data('id')+',';
        });
        if(ids == ''){
            layer.msg('至少选择一项', {icon: 2, time: 2000});
            return false;
        }
        publicHandle(ids,type); //调用删除函数
    }
    /**
     * 公共操作（删，改）
     * @param type
     * @returns {boolean}
     */
    function publicHandle(ids,handle_type) {
        layer.confirm('确认当前操作？', {
                btn: ['确定', '取消'] //按钮
            }, function () {
                // 确定
                $.ajax({
                    url: $('#flexigrid').data('url'),
                    type: 'post',
                    data: {ids: ids, type: handle_type},
                    dataType: 'JSON',
                    success: function (data) {
                        console.log(data);
                        layer.closeAll();
                        if (data.status == 1) {
                            layer.msg(data.msg, {icon: 1, time: 2000}, function () {
                                location.href = data.url;
                            });
                        } else {
                            layer.msg(data.msg, {icon: 2, time: 2000});
                        }
                    }
                });
            }, function (index) {
                layer.close(index);
            }
        );
    }

</script>

</head>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>返回消息管理</h3>

            </div>
        </div>
    </div>
<!--邮件服务器设置-->
<div class="common-form">
    <div class="ctoc">
        <foreach name="lists" item="list">
            <if condition="$list['is_admin'] eq 0">
                <dl class="user-information  clearfix">
                    <dd  style="width:78%">
                        <p class="name-tit">  {$list['username']} <span>{$list['w_time']}</span> </p>
                        <p class="gray6">{$list['msg']}</p>
                    </dd>
                </dl>
            <else />
                <dl class="user-information me-msg clearfix">
                    <dd style="width:80%">
                        <p class="name-tit"> {$list['admin']} <span>{$list['w_time']}</span> </p>
                        <p class="gray6">{$list['msg']}</p>
                    </dd>
                </dl>
            </if>
        </foreach>
    </div>
    <form id="info_form" action="/index.php/admin/Msg/huifu" method="post" enctype="multipart/form-data" target="_blank">
        <input name="id" type="hidden" value="{$id}" />
        <div class="buttom"  style="position: absolute;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 48px;
        position: relative;
    display: inline-block;
    vertical-align: middle;">
            <input name="content" class="input-text" placeholder="请输入回复内容" style=" width: 80%;
    height: 30px;    margin-left: 20px;" />&nbsp;&nbsp; <input name="" id="submit_btn_adr" type="button" class="btn" value="发送">
        </div>
    </form>

</div>
</div>
<script>

    $("#submit_btn_adr").bind("click", function () {
        var fromdata=$("#info_form").serialize();
        var url ="/index.php/admin/Msg/huifu";
        $.post(url,fromdata,function(data){
            if(data.status==1){
                window.location.reload();
            }else{
                alert(data.msg);
            }
        },'json');
        return false;
    });
</script>